import request from '@/utils/request'

export function createMechanismCategory(data) {
  return request({
    url: '/mechanismCategory/create',
    method: 'post',
    data
  })
}

export function deleteMechanismCategory(data) {
  return request({
    url: '/mechanismCategory/delete',
    method: 'post',
    data
  })
}

export function updateMechanismCategory(data) {
  return request({
    url: '/mechanismCategory/update',
    method: 'post',
    data
  })
}

export function listAllMCategory() {
  return request({
    url: '/mechanismCategory/listAll',
    method: 'get'
  })
}

export function listMechanismCategory(query) {
  return request({
    url: '/mechanismCategory/list',
    method: 'get',
    params: query
  })
}

export function listMechanisLevel() {
  return request({
    url: '/mechanismCategory/listLevel',
    method: 'get'
  })
}
